import VueRouter from 'vue-router'
import Home from './components/tabbar/Home.vue'
import Member from './components/tabbar/Member.vue'
import ShopCar from './components/tabbar/ShopCar.vue'
import Search from './components/tabbar/Search.vue'
import NewList from './components/news/NewsList.vue'
import NewsInfo from './components/news/NewsInfo.vue'

var router = new VueRouter({
    routes:[
        {path:'/', redirect:'/home'},
        {path:'/home', component:Home},
        {path:'/member', component:Member},
        {path:'/shopCar', component:ShopCar},
        {path:'/search', component:Search},
        {path:'/home/newlist', component:NewList},
        {path:'/home/newsinfo', component:NewsInfo}
    ],
    linkActiveClass:'mui-active'
})

export default router
